﻿
  <!DOCTYPE html>
<html lang="zh-CN">
  <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Joychao <joy@joychao.cc>">    
    <script type="text/javascript" src="js/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="js/jquery.cookie.js" ></script>
    <script src="leap_fe/js/base.js"></script>
  </head>
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  <link class="bootstrap library" rel="stylesheet" type="text/css" href="http://sandbox.runjs.cn/js/sandbox/bootstrap-2.2.0/css/bootstrap.min.css">
  <script class="bootstrap library" src="http://sandbox.runjs.cn/js/sandbox/bootstrap-2.2.0/js/bootstrap.min.js" type="text/javascript"></script>
  </head>
  <body>
    <div class="container">
        <section class="loginBox row-fluid">
          <section class="span7 left">
            <h2>登录</h2>
            <p><input type="text" id="username" name="username" /></p>
            <p><input type="password" id="password" name="password" /></p>
            <section class="row-fluid">
              <section class="span8 lh30"><label>
              <span style="color:red" class="msg_tip" ></span> 
              </label></section>
          <section class="span1"><input type="button" value=" 登录 " class="btn btn-primary loginBtn "></section>
            </section>
          </section>
          <section class="span5 right">
            <h2>注意：</h2>
            <section>
              <p>使用本系统之前请确认打开浏览器的cookie。否则将不能正常使用。</p>
              <!-- <p><input type="button" value=" 注册 " class="btn"></p> -->
            </section>
          </section>
        </section><!-- /loginBox -->
    </div> <!-- /container -->
  </body>
</html>

      <style>*{margin:0;padding: 0;}
      body{background: #444 url(http://sandbox.runjs.cn/uploads/rs/418/nkls38xx/carbon_fibre_big.png)}
      .loginBox{width:420px;height:230px;padding:0 20px;border:1px solid #fff; color:#000; margin-top:40px; border-radius:8px;background: white;box-shadow:0 0 15px #222; background: -moz-linear-gradient(top, #fff, #efefef 8%);background: -webkit-gradient(linear, 0 0, 0 100%, from(#f6f6f6), to(#f4f4f4));font:11px/1.5em 'Microsoft YaHei' ;position: absolute;left:50%;top:50%;margin-left:-210px;margin-top:-115px;}
      .loginBox h2{height:45px;font-size:20px;font-weight:normal;}
      .loginBox .left{border-right:1px solid #ccc;height:100%;padding-right: 20px; }</style>
          <script>
          jQuery(document).ready(function($) {
            $('.loginBtn').on('click', function() {
              var parms={
                name:$('#username').val(),
                password:$('#password').val()
              }
        
                $.getJSON("http://127.0.0.1:8080/adminpro/login.do?callback=?",parms, function(json,textStatus) {
                if(json.status>0) {
                   $.cookie('token_client',json.data.id);
                    window.location.href="chongb_info.html?type=chongb_info"; 
                }else{
                  $('.msg_tip').html(json.msg);
                }
              });
            });
          });
          </script>
  
<!-- Generated by RunJS (Tue Sep 23 00:41:18 CST 2014) 1ms -->